from flask import Flask
from .models import *
from .util import *

app = Flask(__name__)
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///test.db'

app.test_request_context().push()
db.init_app(app)
db.create_all()

# Student(20220905, '邱念楚').insert()
# Volunteer(name='漂流伞', desc='整理了漂流伞', inside=90).insert()
# StuVol(1, 20220905).insert()

if __name__ == '__main__':
    app.run(host='0.0.0.0', debug=False)